package com.yowasa.xiuxian.engine.battle.enemy.mental;


import com.google.common.collect.Lists;
import com.yowasa.xiuxian.annoations.Mental;
import com.yowasa.xiuxian.engine.hone.MentalInterface;
import com.yowasa.xiuxian.entity.bo.user.UserBO;
import com.yowasa.xiuxian.entity.bo.user.UserBattle;
import com.yowasa.xiuxian.entity.enums.ElementEnum;
import com.yowasa.xiuxian.exception.HandlerException;

import java.util.List;

@Mental(name = "兽王心诀")
public class ShouWangXinJue implements MentalInterface {


    @Override
    public ElementEnum getElement() {
        return null;
    }

    @Override
    public void limit(UserBO user) {
        throw new HandlerException("无法学习妖兽的心法");
    }

    @Override
    public String limitDesc() {
        return "无法学习";
    }

    @Override
    public String desc() {
        return "无属性妖兽心法,妖兽修习的基本心法,提供全方面的额外强化(血量/物理/术法/防御/免疫)";
    }

    @Override
    public List<String> bsList() {
        return Lists.newArrayList("妖兽攻击");
    }

    @Override
    public String breakUp(UserBO user) {
        UserBattle upBattle = getBaseUp(user);
        upBattle.setHp((int)(upBattle.getHp()*1.5));
        upBattle.setChp(upBattle.getHp());
        upBattle.setSpell((int)((upBattle.getSpell() + 5) * 1.2));
        upBattle.setAtk((int)((upBattle.getAtk() + 5) * 1.3));
        upBattle.setDef((int)((upBattle.getDef() + 5) * 1.3));
        upBattle.setImm((int)((upBattle.getImm()+2) * 2));
        buildNewUpBattle(user, upBattle);
        return upBattle.getUpDesc();
    }


}
